﻿using Admin.NET.Core;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 盲板信息
/// </summary>
[SugarTable("Board_Base","盲板信息")]
public class BoardBase  : EntityBase
{
    /// <summary>
    /// 盲板编号
    /// </summary>
    [SugarColumn(ColumnName = "BoardNo", ColumnDescription = "盲板编号", Length = 32)]
    public string? BoardNo { get; set; }

    /// <summary>
    /// 路由编号
    /// </summary>
    [SugarColumn(ColumnName = "RouteNo", ColumnDescription = "路由编号", Length = 32)]
    public string? RouteNo { get; set; }
    /// <summary>
    /// 盲板所属设备
    /// </summary>
    [SugarColumn(ColumnName = "BoardDevice", ColumnDescription = "盲板所属设备")]
    public long? BoardDevice { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "BoardPlace", ColumnDescription = "盲板位置,出口入口", Length = 10)]
    public string? BoardPlace { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "BoardState", ColumnDescription = "盲板状态", Length = 10)]
    public string? BoardState { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "Note", ColumnDescription = "备注", Length = 500)]
    public string? Note { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgId", ColumnDescription = "")]
    public long? CreateOrgId { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgName", ColumnDescription = "", Length = 64)]
    public string? CreateOrgName { get; set; }

    /// <summary>
    /// 设备位置
    /// </summary>
    [SugarColumn(IsIgnore = true)]
    [Navigate(NavigateType.OneToOne, nameof(BoardDevice))]
    public BoardDevice  Device { get; set; }

}
